package com.myframe.www.model.remote.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Description:
 * Created by Andy Hong on 10/19/2017.
 */

public class LoginBean implements Serializable {
    private static final long serialVersionUID = -5971077603323967752L;
    /**
     * user_id : 1318
     * access_token : 614E23EABAB16FB2642E7EB03A743A577A59A0ACD84A802E2CD907B5F2E1F81AE6880FB9D0C86057
     * refresh_token : 614E23EABAB16FB2029F5150621053786E619515E75A73EDCB7D48CD6E5F106426021E0B21A19BED
     * expires_at : 1508571047863
     * server_time : 1508139047863
     * mac_key : jx35OMd9sF
     */

    @SerializedName("user_id") private String userId;
    @SerializedName("access_token") private String accessToken;
    @SerializedName("refresh_token") private String refreshToken;
    @SerializedName("expires_at") private long expiresAt;
    @SerializedName("server_time") private long serverTime;
    @SerializedName("mac_key") private String macKey;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public long getExpiresAt() {
        return expiresAt;
    }

    public void setExpiresAt(long expiresAt) {
        this.expiresAt = expiresAt;
    }

    public long getServerTime() {
        return serverTime;
    }

    public void setServerTime(long serverTime) {
        this.serverTime = serverTime;
    }

    public String getMacKey() {
        return macKey;
    }

    public void setMacKey(String macKey) {
        this.macKey = macKey;
    }

    @Override
    public String toString() {
        return "LoginBean{" +
                "userId='" + userId + '\'' +
                ", accessToken='" + accessToken + '\'' +
                ", refreshToken='" + refreshToken + '\'' +
                ", expiresAt=" + expiresAt +
                ", serverTime=" + serverTime +
                ", macKey='" + macKey + '\'' +
                '}';
    }
}
